/********************************************************************

   wfexti.h

   Windows File Manager Extensions definitions

   Copyright (c) Microsoft Corporation. All rights reserved.
   Licensed under the MIT License.

********************************************************************/

#pragma once

//------------------ private stuff ---------------------------  /* ;Internal */
/* ;Internal */
typedef struct _EXTENSION {                         /* ;Internal */
    DWORD(APIENTRY* ExtProc)(HWND, WPARAM, LPARAM); /* ;Internal */
    WORD Delta;                                     /* ;Internal */
    HANDLE hModule;                                 /* ;Internal */
    HMENU hMenu;                                    /* ;Internal */
    HBITMAP hbmButtons;                             /* ;Internal */
    WORD idBitmap;                                  /* ;Internal */
    WORD iStartBmp;                                 /* ;Internal */
    BOOL bRestored;                                 /* ;Internal */
    BOOL bUnicode;                                  /* ;Internal */
} EXTENSION;                                        /* ;Internal */

#define MAX_EXTENSIONS 10                                         /* ;Internal */
extern EXTENSION extensions[MAX_EXTENSIONS];                      /* ;Internal */
                                                                  /* ;Internal */
LRESULT ExtensionMsgProc(UINT wMsg, WPARAM wParam, LPARAM lpSel); /* ;Internal */
void FreeExtensions();                                            /* ;Internal */
